package com.jboost.hyk.common.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jboost.hyk.common.entity.BusinessCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jboost.hyk.common.model.BusinessCoursePointCount;
import com.jboost.hyk.course.entity.CourseSnapshot;

/**
 * @Description: 机构课程
 * @Author: cxn
 * @Date:   2022-11-07
 * @Version: V1.0
 */
public interface BusinessCourseMapper extends BaseMapper<BusinessCourse> {

    List<String> findTeacherByCourseName(String businessId,String name);

    List<BusinessCourse> pageBy(Page<BusinessCourse> page, String businessId, String name, String category2Id, String category3Id, String teacherId, String status);

    List<BusinessCourse> listByCourseIds(String businessId, List<String> courseIds);

    BusinessCoursePointCount countPointStatus(String businessId, String courseSnapshotId);

    void setNullInvalidTime(String id);

    List<BusinessCourse> listByCourseSnapshotIds(List<String> courseSnapshotIds);
}
